//
//  UUInputFunctionView.h
//  UUChatDemoForTextVoicePicture
//
//  Created by shake on 14-8-27.
//  Copyright (c) 2014年 uyiuyao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class UUInputFunctionView;

@protocol UUInputFunctionViewDelegate <NSObject>

// text
- (void)UUInputFunctionView:(UUInputFunctionView *)funcView sendMessage:(NSString *)message;

// image
- (void)UUInputFunctionView:(UUInputFunctionView *)funcView sendPicture:(UIImage *)image;

// audio
- (void)UUInputFunctionView:(UUInputFunctionView *)funcView sendVoice:(NSData *)voice time:(NSInteger)second;
//选择图片
- (void)clickImageButton;
//点击表情按钮
- (void)clickEmojiButton;
//点击输入框
- (void)clickTextView;
//点击发送按钮
- (void)clickSentMessage;
//开始录音
- (void)startVoice;
//取消录音、完成
- (void)stopVoice;

@end

@interface UUInputFunctionView : UIView <UIActionSheetDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate>

@property (nonatomic, retain) UIButton *btnSendMessage;
@property (nonatomic, retain) UIButton *btnChangeVoiceState;
@property (nonatomic, retain) UIButton *btnVoiceRecord;
@property (nonatomic, retain) UIButton *showBQButton;
@property (nonatomic, retain) UITextView *textViewInput;
@property (nonatomic, strong) UILabel *placeHold;

@property (nonatomic, assign) BOOL isAbleToSendTextMessage;

@property (nonatomic, assign) id<UUInputFunctionViewDelegate>delegate;

- (void)changeSendBtnWithPhoto:(BOOL)isPhoto;

@end
